#!/sbin/sh # # Create an HTML index from the installed Freeware products based # on the release notes. # # usage: $0 [-installed|-web] # -installed create index.html and index for installed products. # -web create web pages (i.e. leave out installed.html) # -web is designed for internal SGI use only; generate pages for silicon surf. # # -installed is the default # # input: $COMMON/index.template # output: $RELDIR/index.html, $RELDIR/installed.html # RELDIR=${rbase:=/}/usr/freeware/relnotes COMMON=$RELDIR/shared ## MUST NOT CHANGE. same location as old fw_common INDEX=$RELDIR/index.html INST=$RELDIR/installed.html TMP=/tmp/mkindex.$$ INST_ED="INSTALLED INDEX" INST_ABLE="INSTALLABLE INDEX" HTTP_LINK="HTTP LINKS" ################ ## subroutines rminsted() { # rminsted $input_file # create index.html sed -e "//,//d" <$1 >$TMP mv -f $TMP $1 } rminstable() { # rminstable $input_file # create index.html # remove INSTALLABLE portion if not available if [ ! -f $RELDIR/index-by-alpha.html ] then ## fw_latest is not available sed -e "//,//d" <$1 >$TMP mv -f $TMP $1 #else #nop fi } rmhttplink() { # rmhttplink $input_file # create index.html sed -e "//,//d" <$1 >$TMP mv -f $TMP $1 } makeinstalled() { # makeinstalled $input_file cat >$1 <<_EOINDEX_ Installed products

Product Listing